package sshFile;

public class test {
    public static void main(String[] args) {
        String in = "qqqwwweee111rrr222333sssdddxxxqqq";
        String[] one = {"qqq","xxx"};
        String[] two = {"111","333"};
        String qwe = tihuan(in,one,two);
        System.out.println(qwe);
    }
    public static String tihuan(String in, String[] one, String[] two) {
        for (String a : one) {
            in = in.replace(a, "");
        }
        for (String b : two) {
            in = in.replace(b, System.getProperty("line.separator"));
        }
        return in;
    }
}
